
	/*
	function checkform(){

	var targetDiv=document.getElementById("errormessege");
	var word=document.getElementsByName("userid")[0].value;
	var sbutton=document.getElementsByName("sbutton")[0];
	if(word!="")
	var dataSource="login.php?id="+word;
	else {
		targetDiv.innerHTML="请输入用户名！";
		return false;
	}
	var XMLHttpRequestObject =false;
	if(window.XMLHttpRequest){
		XMLHttpRequestObject= new XMLHttpRequest();
	}else if(window.ActiveXObject){
		XMLHttpRequestObject=new ActiveXObject("Microsoft.XMLHTTP");
	}

	if(XMLHttpRequestObject){
		XMLHttpRequestObject.open("GET",dataSource);
		XMLHttpRequestObject.onreadystatechange=function()
		{
			//alert(XMLHttpRequestObject.readyState+" "+XMLHttpRequestObject.status);
			if(XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status ==200)
			{
				
				//alert(XMLHttpRequestObject.responseText);
				if(XMLHttpRequestObject.responseText != "OK"){
					targetDiv.innerHTML="";
					sbutton.disabled=false;
					return true;
				}
				else {
					targetDiv.innerHTML="该用户名已存在!";
					sbutton.disabled=true;
					return false;
				}
			}
		}
		XMLHttpRequestObject.send(null);
	}
	}
